package com.nextplus.housetolet.controller;

import org.springframework.beans.factory.annotation.Autowired;

import com.nextplus.housetolet.repository.PaymentRepository;
import com.nextplus.housetolet.repository.RentalRepository;
import com.nextplus.housetolet.repository.RoomRepository;
import com.nextplus.housetolet.repository.UserRepository;

public class BaseController {
	
	public static String PAGE_PATH = "pagePath";

	@Autowired
	protected UserRepository userRepository;
	@Autowired
	protected RoomRepository roomRepository;
	@Autowired
	protected RentalRepository rentalRepository;
	@Autowired
	protected PaymentRepository paymentRepository;

	public UserRepository getUserRepository() {
		return userRepository;
	}

	public void setUserRepository(UserRepository userRepository) {
		this.userRepository = userRepository;
	}

	public RoomRepository getRoomRepository() {
		return roomRepository;
	}

	public void setRoomRepository(RoomRepository roomRepository) {
		this.roomRepository = roomRepository;
	}

	public RentalRepository getRentalRepository() {
		return rentalRepository;
	}

	public void setRentalRepository(RentalRepository rentalRepository) {
		this.rentalRepository = rentalRepository;
	}

	public PaymentRepository getPaymentRepository() {
		return paymentRepository;
	}

	public void setPaymentRepository(PaymentRepository paymentRepository) {
		this.paymentRepository = paymentRepository;
	}

}
